package com.small.nacos.api;



import com.small.nacos.api.naming.NamingFactory;
import com.small.nacos.api.naming.NamingService;
import com.small.nacos.api.config.ConfigFactory;
import com.small.nacos.api.config.ConfigService;
import com.small.nacos.api.exception.NacosException;

import java.util.Properties;

public class NacosFactory {

    public static ConfigService createConfigService(Properties properties) throws NacosException {
        return ConfigFactory.createConfigService(properties);
    }

    public static NamingService createNamingService(Properties properties) throws NacosException {
        return NamingFactory.createNamingService(properties);
    }
}
